package builder;

public class Test {
    public static void lowConfigBuilder() {
        Director director = new Director();
        director.setBuilder(new LowConfigBuilder());
        director.createComputer();
        Computer computer = director.getComputer();
        System.out.println("低配电脑：" + computer.toString());
    }

    public static void highConfigBuilder() {
        Director director = new Director();
        director.setBuilder(new HighConfigBuilder());
        director.createComputer();
        Computer computer = director.getComputer();
        System.out.println("高配电脑：" + computer.toString());
    }

    public static void main(String[] args) {
        lowConfigBuilder();
        highConfigBuilder();
    }
}